package org.BattleOfGoode;

import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.util.Log;
import android.view.Window;
import android.view.WindowManager;

public class GoodeActivity extends Activity {

	private static final String TAG = GoodeActivity.class.getSimpleName();

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		// requesting to turn the title OFF
		 requestWindowFeature(Window.FEATURE_NO_TITLE);
		// // making it full screen
		 getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
		 WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
		// // set our MainGamePanel as the View
		 this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

		// getWindow().setLayout(1024, 600);
		// getWindow().setLayout(400, 400);

		setContentView(new MainGamePanel(this));// , layout);
//		setContentView(new PanelMenu(this));// , layout);
		Log.d(TAG, "View added");
	}

	@Override
	protected void onDestroy() {
		Log.d(TAG, "Destroying...");
		super.onDestroy();
	}

	@Override
	protected void onStop() {
		Log.d(TAG, "Stopping...");
		super.onStop();
	}

	private void setfullsc() {
		requestWindowFeature(Window.FEATURE_NO_TITLE);

		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,

		WindowManager.LayoutParams.FLAG_FULLSCREEN);
	}

	private void setnoti() {
		requestWindowFeature(Window.FEATURE_NO_TITLE);
	}

}